package dbmodels;

import java.util.UUID;

public class User {

	private UUID id;
	private String name;
	private String pass;

	public UUID getId() {
		return id;
	}

	public void setId(UUID id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	
	public boolean isValid(){
		name = name == null ? "" : name;

		name = name.trim();

		if (name.equals(""))
			return false;
		
		pass = pass == null ? "" : pass;

		pass = pass.trim();

		if (pass.equals(""))
			return false;
		
		if(id == null)
			return false;
		
		return true;
	}
	
}
